﻿#pragma once
#include "TPModel.h"
#include <QObject>
// 下单测试
class TestOrderOperator :public QObject
{
	Q_OBJECT
public:
	TestOrderOperator(CTPModel &ctpModel);
	~TestOrderOperator();
	// 设置监控合约
	void SetMoniteSymbol(const std::string &pSymbol);
	// 现在下单
	void InsertOrder(int volum);
	// 限价下单
	void InsertOrder(int volum, int tickCount);
	//// 处理价格
	//virtual void OnDealPrice(const std::string &pSymbolName, MData::PriceItem &pItem);
	//// 处理K线
	//virtual void OnDealKItem(const std::string &pSymbolName, MData::KLineItem &pItem);

//signals:
//	void sigPrice(float lastPrice);
private:
	std::string m_monitorSymbol; // 当前监视的合约
	float m_lastPrice;

	CTPModel &m_ctpModel;
};

